/**
 * The main application class of the <code>MammalManager</code> program
 * @author JV110
 */
public class ProgramMain {
  //You do not need to change this class
  public static void main(String[] args) {
    Whale[] whales = new Whale[5];

    // create some test whale objects
    Whale w = null;
    int temp, weight;
    final int INVALID_INDEX = 3;

    for (int i = 0; i < whales.length; i++) {
      w = new Whale();
      temp = ((int) (Math.random()*50 + 1));
      weight = ((int) (Math.random()*245 + 1));
      // use an invalid weight
      if (i == INVALID_INDEX) {weight = -1 * weight; }
      
      w.setBodyTemperature(temp);
      w.setWeight(weight);
      whales[i] = w;
    }

    // classify whales
    WhaleClassifier wclassify = new WhaleClassifier();
    wclassify.classify(whales);

    // display report
    ReportGenerator repGen = new ReportGenerator();
    repGen.displayReport(whales);

  }
}
